<?php
include 'secure/core.php';
if($users->isUserLoggedIn()){ 
include 'user_header.php';
} else { 
include 'header.php';
}
include 'left.php'; 
?>	
		<div id="right">
			<div class="plain">
				<?php echo $cms->getContent('index');?>
			</div>
			<div class="noboxcenter">
			        <?php if(!$users->isUserLoggedIn()){ ?>
				<a href="register.php" class="item">
					<img src="gfx/icons/big/register.png" alt="Register" />
					<span>Register</span>
					Start Earning Now!
				</a>
				
				<a href="login.php" class="item">
					<img src="gfx/icons/big/login.png" alt="Login" />
					<span>Login</span>
					Login here
				</a>
			        <?php } else { ?>
				<a href="upload.php" class="item">
					<img src="gfx/icons/big/file.png" alt="Upload" />
					<span>Upload</span>
					Start Earning Now!
				</a>
				
				<a href="logout.php" class="item">
					<img src="gfx/icons/big/login.png" alt="Logout" />
					<span>Logout</span>
					Log me out
				</a>
				<?php } ?>
			</div>
		</div>
<?php include 'footer.php'; ?>